package com.mamlambo.sample.ndk1;



public class Misc
{
	static Boolean inCircle(double center_x, double center_y, double radius, double x, double y)
	{
		//square_dist = (center_x - x) ** 2 + (center_y - y) ** 2
		//	return square_dist <= radius ** 2
		double squareDist = Math.pow(center_x - x, 2) + Math.pow(center_y - y, 2);
		return (squareDist <= radius * radius);
	}
}
